@import "./styles/common.less";
@import "./styles/layout.less";
@import "./styles/Topbar.less";
@import "./styles/Selector.less";

#NoteSideBar {
  width: 240px;
  font-size: 1rem;
  background-color: #f5f5f5;
  border-right: 1px solid #e0e1e5;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;

  .shrink-toggle {
    display: inline-block;
    position: absolute;
    right: -15px;
    bottom: 0;
    width: 15px;
    line-height: 20px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-bottom: none;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 1;
  }

  &.shrink {
    margin-left: -240px;
  }
}

#NoteSideBar .actions {
  width: 240px;
  padding: 0 0.5rem;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-bottom: 1px solid #eee;
  box-sizing: border-box;
}

#NoteSideBar .explorer {
  width: 240px;
  flex: 1;
  overflow: auto;
}

#NoteSideBar .item {
  padding: 0.5rem 0;
  cursor: pointer;
  display: flex;
  box-sizing: border-box;
}

#NoteSideBar .item > i {
  width: 50px;
  float: left;
}

#NoteSideBar .item > span {
  flex: 1;
  font-size: 1.2rem;
  display: inline-block;
}

#NoteSideBar .book-item {
  padding: 0 0.5rem 0 1.5rem;
  cursor: pointer;
  line-height: 36px;
  height: 36px;
  box-sizing: border-box;
  font-size: 14px;
  position: relative;
  &.isPublished {
    border-right: 3px solid #66CC99;
  }
}

#NoteSideBar .book-item.dragover {
  border: 2px #999 dashed;
}

#NoteSideBar .book-item a {
  color: #363636;
}

#NoteSideBar .book-item > a.name {
  display: inline-block;
  width: 100%;
  height: 100%;
  > i {
    display: inline-block;
    width: 20px;
    text-align: center;
  }
}

#NoteSideBar .book-item.selected {
  background: #398dee;
  color: #ffffff;
}


#NoteSideBar .book-item.selected i,
#NoteSideBar .book-item.selected a {
  color: #ffffff;
}

#NoteSideBar .book-item > input {
  padding: 0 0.2rem;
  margin: 0;
  border: none;
}

#NoteSideBar .book-item > i {
  color: #999;
  margin-right: 0.5rem;
  line-height: 20px;
}

#NoteSideBar .book-item > i.fa-folder,
#NoteSideBar .book-item > i.fa-folder-open {
  color: rgb(246, 206, 98);
}

#NoteSideBar .book-item i.more {
  opacity: 0;
}

#NoteSideBar .book-item:not(.selected):hover {
  background-color: #e4edf8;
}

#NoteSideBar .book-item:hover i.more {
  opacity: 1;
}

#NoteSideBar .book-item > .children {
  padding-left: 1rem;
  display: none;
}

#NoteSideBar .book-item.open > .children {
  display: block;
}

#NotePaper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#NotePaper > .paper-top {
  height: 80px;
  border-bottom: 1px solid #eeeeee;
  line-height: 30px;
  background-color: #f1f1f1;
}

#NotePaper > .paper-top input.title {
  width: 100%;
  border: none;
  border-bottom: 1px solid #eee;
  font-size: 1.2rem;
  padding: 0.3rem 0.5rem;
  line-height: 50px;
  height: 50px;
  box-sizing: border-box;
  background-color: #FFF;
}

#NotePaper > .paper-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#NotePaper > .paper-bottom.fullscreen {
  position: absolute;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#NotePaper > .paper-bottom > .editor-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#NotePaper > .paper-bottom > .DraftEditor-root {
  width: 100%;
}

